

package com.dog.basics.dao.sys;

import com.dog.basics.bean.model.sys.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dog.basics.bean.vo.admin.sys.AdminSysRoleVo;
import com.dog.basics.common.datascope.PigxBaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author guonh
 * @since 2017-10-29
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

	/**
	 * 通过用户ID，查询角色信息
	 * @param userId
	 * @return
	 */
	List<AdminSysRoleVo> listRolesByUserId(Long userId);

}
